import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  server:{
    open:true,
    host:'127.0.0.1',
    port:5174,
    allowedHosts:[
      'herring-settled-centrally.ngrok-free.app',
    ],
    proxy: {
      '/api': {
        target: 'http://localhost:9002',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, '')
      }
    }
  }
})
